package com.zhihuishu.micro.course.openapi.myuni.dto;

/**
 * 课程类型
 * 
 * @author Administrator
 * 
 */
public enum CourseTypeEnum {

    shareCourese(1, "跨校共享课"), // 共享课
    minCourse(2, "微课程"), // 微课程
    privateCourse(3, "校内课程");// 私有云

    private Integer code;// 编号

    private String content;// 名称

    private CourseTypeEnum(Integer code, String content) {
        this.code = code;
        this.content = content;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public static CourseTypeEnum getCourseTypeEnumByCode(int code) {
        
        for (CourseTypeEnum courseTypeEnum : CourseTypeEnum.values()) {
            if (courseTypeEnum.getCode().equals(code)) {
                return courseTypeEnum;
            }

        }
        return null;
    }

}
